<?php
/**
 * @file $HeadURL: attendanceworkday.php $
 * @author $Author: ZhangFan (zhangfan1@haibao.com) $
 * @date $Date: 2016-1-13 $
 * @brief
 */

namespace  haibao\cms\model\data\attendance;

class AttendanceWorkDay extends \haibao\cms\model\data\Base{
    
    /**
     * 上班
     */
    const STATUS_WORK = 1; 
    /**
     * 休息
     */
    const STATUS_UNWORK = 0;
    /**
     * 法定节假日
     */
    const STATUS_HOLIDAY = 2;
    /**
     * 时间
     */
    public $WorkDate;
    /**
     * 状态
     */
    public $Status;
    /**
     * 休息日类型
     */
    public $Type;
    
    public function __construct(){
        parent::__construct();
        
        $this->dateField('WorkDate', 'WorkDate',true);
        $this->intField('Status', 'Status', true, 1);
        
        $this->setTableName('AttendanceWorkDay');
    }
}